package com.liqin.nothing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.liqin.nothing.annotation.SensitiveWrapped;
import com.liqin.nothing.enums.SensitiveEnum;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author ghl
 */
@Data
@Accessors(chain = true)
public class User implements Serializable {

    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    @SensitiveWrapped(SensitiveEnum.CHINESE_NAME)
    private String name;

    private static final long serialVersionUID = 1L;

}